<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath }"/>
<%@taglib  prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:forEach items="${tuPianList }" var="u" varStatus="id">
	<c:choose>
		<c:when test="${id.index==0 }">
			<div class="active item">
				<img src="${ctx }${u.xiangDuiLJ}/${u.wenJianM}" alt="" height="300px" width="300px">
				<div style="margin-top:5px;">
					<a class="btn red" href="javascript:shanChuTuPian('${u.id }')"><i class="fa fa-search"></i>&nbsp;&nbsp;删除</a>
				</div>
			</div>
		</c:when>
		<c:otherwise>
			<div class="item">
				<img src="${ctx }${u.xiangDuiLJ}/${u.wenJianM}" alt="" height="300px" width="300px">
				<div style="margin-top:5px;">
					<a class="btn red" href="javascript:shanChuTuPian('${u.id }')"><i class="fa fa-search"></i>&nbsp;&nbsp;删除</a>
				</div>
			</div>
		</c:otherwise>
	</c:choose>
</c:forEach>